/**
 * @ author: 汪孟苹
 */
define([], function () {
    var tpl = {}

    tpl.babyList = function () {
        return '<script id="tpl_babyList" type="text/html">' +
            '{{each rows as value i}}' +
            '	{{if value.patientId}}' +
            '	<div class="col-sm-6 col-md-4 col-lg-3 babycard clickbabycard {{if !value.taskStatusArr}}babycard-padding{{/if}}" followQueueId="{{value.followQueueId}}" patientSchemeId="{{value.patientSchemeId}}" patientId="{{value.patientId}}">' +
            '		<div class="row">' +
            '			<div class="col-sm-2 col-md-2 babycard-icon clickbabycard-icon">' +
            '				{{if value.userType && value.userType == "2"}}' + // 2:妈妈，1：宝宝
            '				<img src="page/followup/imgs/comm/{{if value.gender == "F"}}girl{{else}}boy{{/if}}.png">' +
            '				{{else}}' +
            '				<img src="page/followup/imgs/comm/{{if value.gender == "F"}}girl_Ahmu{{else}}boy_Ahmu{{/if}}.png">' +
            '				{{/if}}' +
            '			</div>' +
            '			<div class="col-sm-8 col-md-8 babycard-name ellipsis-1 clickbabycard-name">{{value.patientName}}</div>' +
            '		</div>' +
            '		<div class="row babycard-tel ellipsis-1">{{value.phoneNum}}</div>' +
            '		<div class="row babycard-queuename ellipsis-1 clickbabycard-queuename">{{value.followQueueName}}</div>' +
            '		<div class="babycard-progress progress-wrap">' +
            '			{{each value.taskStatusArr as value1 i}}' +
            '			<div style="width:{{value.width}}"><i class="{{value1}}"></i></div>' +
            '			{{/each}}' +
            '		</div>' +
            '		<div class="babycard-hisNo ellipsis-1">{{value.hisNo}}</div>' +
            '	</div>' +
            '	{{else}}' +
            '		<div class="col-sm-6 col-md-4 col-lg-3 babycard"></div>' +
            '	{{/if}}' +
            '{{/each}}' +
            '</script>'
    }

    tpl.babyList_ahmu = function () {
        return '<script id="tpl_babyList_ahmu" type="text/html">' +
            '{{each rows as value i}}' +
            '	{{if value.patientId}}' +
            '	<div class="col-sm-6 col-md-4 col-lg-3 babycardAhmu clickbabycard {{if !value.taskStatusArr}}babycardAhmu-padding{{/if}}" followQueueId="{{value.followQueueId}}" patientSchemeId="{{value.patientSchemeId}}" patientId="{{value.patientId}}">' +


            '		<div class="clearfix">' +
            '		<div style="display:inline">' +
            '			{{if value.closeCaseRecord}}<span style="color:red;font-weight:bold">已结案</span>{{/if}}' +
            '		</div>' +
            '			<div class="pull-left babycardAhmu-hisno ellipsis-1">{{value.hisNo}}</div>' +

            '			<div style="width:49%" class="pull-right babycardAhmu-queuename ellipsis-1 clickbabycard-queuename">{{value.followQueueName}}</div>' +
            '		</div>' +
            '		<div class="babycardAhmu-row02 clearfix">' +
            '			<div class="pull-left babycardAhmu-avatar clickbabycard-icon">' +
            '				{{if value.userType && value.userType == "2"}}' + // 2:妈妈，1：宝宝
            '				<img src="page/followup/imgs/comm/{{if value.gender == "F"}}girl{{else}}boy{{/if}}.png">' +
            '				{{else}}' +
            '				<img src="page/followup/imgs/comm/{{if value.gender == "F"}}girl_Ahmu{{else}}boy_Ahmu{{/if}}.png">' +
            '				{{/if}}' +
            '			</div>' +
            '			<div class="pull-left babycardAhmu-name">' +
            '				姓名' +
            '				<span class="clickbabycard-name ellipsis-1">{{value.patientName}}</span>' +
            '			</div>' +
            '			<div class="pull-left babycardAhmu-phone" style="width: 25%;">' +
            '				电话' +
            '				<span class="ellipsis-1">{{value.phoneNum}}</span>' +
            '			</div>' +
            '			<div class="pull-left" style="padding-left: 30px;">' +
            '				    <span class="ellipsis-1" style="{{if value.scaleAssessStatus == 3}}color:red;display:block{{else}}display:none{{/if}}">{{if value.scaleAssessStatus == 3}}高危{{else}}{{/if}}</span>' +
            '				    <span class="ellipsis-1" style="{{if value.scaleAssessStatus == 2}}color:orange;display:block{{else}}display:none{{/if}}">{{if value.scaleAssessStatus == 2}}中危{{else}}{{/if}}</span>' +
            '				    <span class="ellipsis-1" style="{{if value.scaleAssessStatus == 1}}color:#34b95b;display:block{{else}}display:none{{/if}}">{{if value.scaleAssessStatus == 1}}低危{{else}}{{/if}}</span>' +
            '			</div>' +
            '		</div>' +
            '		<div class="progress-wrap">' +
            '			{{each value.taskStatusArr as value1 i}}' +
            '			<div style="width:{{value.width}}"><i class="{{value1}}"></i></div>' +
            '			{{/each}}' +
            '		</div>' +
            '	</div>' +
            '	{{else}}' +
            '		<div class="col-sm-6 col-md-4 col-lg-3 babycardAhmu"></div>' +
            '	{{/if}}' +
            '{{/each}}' +
            '</script>'
    }

    tpl.babyList_check = function () {
        return '<script id="tpl_babyList_check" type="text/html">' +
            '{{each rows as value i}}' +
            '	{{if value.patientId}}' +
            '	<div class="col-sm-6 col-md-4 col-lg-3 babycardCheck clickbabycard {{if !value.taskStatusArr}}babycardCheck-padding{{/if}}" followQueueId="{{value.followQueueId}}" patientSchemeId="{{value.patientSchemeId}}" patientId="{{value.patientId}}">' +
            '		<div class="clearfix">' +
            '			<div class="pull-left babycardCheck-hisno ellipsis-1">{{if value.hisNo}}{{value.hisNo}}{{else}}{{value.phoneNum}}{{/if}}</div>' +
            '			<div class="pull-right babycardCheck-ischeck ellipsis-1">' +
            //'				<i class="fa fa-plus-circle" aria-hidden="true"></i>'+
            '				{{if value.taskAuditFlag=="Y"}}<i class="fa fa-question-circle" aria-hidden="true" data-toggle="tooltip" data-placement="left" title="内容待审核"></i>{{/if}}' +
            //'				<i class="fa fa-exclamation-circle" aria-hidden="true"></i>'+
            '			</div>' +

            '		<div class="pull-right babycardCheck-ischeck ellipsis-1">' +
            '			{{if value.closeCaseRecord}}<span style="color:red;font-weight:bold">已结案</span>{{/if}}' +
            '		</div>' +


            '		</div>' +
            '		<div class="babycardCheck-row02 clearfix">' +
            '			<div class="pull-left babycardCheck-avatar clickbabycard-icon">' +
            '				{{if value.userType && value.userType == "2"}}' + // 2:妈妈，1：宝宝
            '				<img src="page/followup/imgs/comm/{{if value.gender == "F"}}girl{{else}}boy{{/if}}.png">' +
            '				{{else}}' +
            '				<img src="page/followup/imgs/comm/{{if value.gender == "F"}}girl_Ahmu{{else}}boy_Ahmu{{/if}}.png">' +
            '				{{/if}}' +
            '			</div>' +
            '			<div class="pull-left babycardCheck-con" style="width: 50%">' +
            '				<div class="clearfix">' +
            '					<span class="babycardCheck-name clickbabycard-name ellipsis-1">{{if value.isPremature}}<i class="babycardCheck-premature">早</i>{{/if}}{{value.patientName}}</span>' +
            '					<span class="babycardCheck-age ellipsis-1">{{value.age}}</span>' +
            '				</div>' +
            '				<div class="babycardCheck-queuename clickbabycard-queuename ellipsis-1">{{value.followQueueName}}</div>' +
            '			</div>' +
            '			<div class="pull-right babycardCheck-con" style="width: 30%">' +
            '				<div class="clearfix">' +
            '				    <span class="ellipsis-1" style="{{if value.scaleAssessStatus == 3}}color:red;display:block{{else}}display:none{{/if}}">{{if value.scaleAssessStatus == 3}}高危{{else}}{{/if}}</span>' +
            '				    <span class="ellipsis-1" style="{{if value.scaleAssessStatus == 2}}color:orange;display:block{{else}}display:none{{/if}}">{{if value.scaleAssessStatus == 2}}中危{{else}}{{/if}}</span>' +
            '				    <span class="ellipsis-1" style="{{if value.scaleAssessStatus == 1}}color:#34b95b;display:block{{else}}display:none{{/if}}">{{if value.scaleAssessStatus == 1}}低危{{else}}{{/if}}</span>' +
            '				</div>' +
            '			</div>' +
            '		</div>' +
            '		<div class="progress-wrap">' +
            '			{{each value.taskStatusArr as value1 i}}' +
            '			<div style="width:{{value.width}}"><i class="{{value1}}"></i></div>' +
            '			{{/each}}' +
            '		</div>' +
            '	</div>' +
            '	{{else}}' +
            '		<div class="col-sm-6 col-md-4 col-lg-3 babycardCheck"></div>' +
            '	{{/if}}' +
            '{{/each}}' +
            '</script>'
    }

    return tpl
})
